package com.dw.etl.core.bean.vo;
import java.util.ArrayList;
import java.util.List;

/**
 * @author GuoPeng
 * @Title: LayTree
 * @Description: Layui文件树返回类
 * @date 2019/5/11 16:50
 */
public class LayTree {

    private Integer code;

    private List<Tree> data = new ArrayList<Tree>();

    public static LayTree createLayTree() {
        LayTree layTree = new LayTree();
        layTree.code = 0;
        return layTree;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public List<Tree> getData() {
        return data;
    }

    public void setData(List<Tree> data) {
        this.data = data;
    }

    public  LayTree addLayTree(List<Tree> d ){
        data=d;
        return  this;
    }

}
